import java.util.HashSet;





public class HelperClass {

	static HashSet<Integer> getRandomSet(int size,int n){
		/** @param: size- the size of the group to construct, n- indicates the domain*/
		
		HashSet<Integer>retSet=new HashSet<Integer>();
		//System.out.println("size given"+size);
		for(int i=0;i<size;i++){
			int rand = (int) Math.round((n-1)*Math.random());
			
			while(retSet.contains(rand))
			{
				rand = (int) Math.round((n-1)*Math.random());
			}
			retSet.add(rand);
		}
		
		
		return retSet;
		

	}
	
	

	
		
	}
	
	
	

